package main;

import processing.core.PApplet;
import processing.core.PImage;

public class AlphaMask extends PApplet {

    PImage pImage;
    PImage imgMask;

    @Override
    public void settings() {
        size(640, 360);
    }

    @Override
    public void setup() {
        pImage = loadImage("C:\\Users\\Hyper\\Pictures\\land.jpg");
        imgMask = loadImage("C:\\Users\\Hyper\\Pictures\\uycode.png");
        pImage.mask(imgMask);
        imageMode(CORNER);
    }

    @Override
    public void draw() {
        background(0, 102, 153);
        image(pImage, width, height);
        image(pImage, mouseX, mouseY);
    }
}
